/*
 * CompresorUtil.h
 *
 *  Created on: 27/11/2009
 *      Author: ngonzalez
 */

#ifndef COMPRESORUTIL_H_
#define COMPRESORUTIL_H_

#include <iostream>
#include <string>
#include "math.h"
using namespace std;


class CompresorUtil {

	public: static unsigned int calculateLength(unsigned int floor,unsigned int roof);

	public: static double calculateNewRoof(long double probability,unsigned int length);

	public: static double calculateNewFloor(unsigned int roof);

	public: static double calculateAcummulateProbability(double length, int numero);

};

#endif /* COMPRESORUTIL_H_ */


